package com.puffer.core.service;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public abstract class BaseService {

	protected static ClassPathXmlApplicationContext ctx = null;

	public BaseService() {
		if (ctx == null) {
			ctx = new ClassPathXmlApplicationContext("jpaContext.xml");
		}
		if(!ctx.isRunning()){
			ctx.refresh();
		}
	}

}
